//
//  WPLineMarginLabel.m
//  wobingwoyi
//
//  Created by WGP on 16/8/30.
//  Copyright © 2016年 WGP. All rights reserved.
//

#import "WPLineMarginLabel.h"

@implementation WPLineMarginLabel

-(void)layoutSubviews
{
    [super layoutSubviews];
    
    NSMutableParagraphStyle *paraStyle = [[NSMutableParagraphStyle alloc] init];
    paraStyle.lineSpacing = 8; //设置行间距
    
    NSDictionary *dic = @{NSFontAttributeName:self.font, NSParagraphStyleAttributeName:paraStyle};
    
    NSAttributedString *attributeStr = [[NSAttributedString alloc] initWithString:self.text attributes:dic];
    self.attributedText = attributeStr;
}


@end
